<?php
/**
 * 充值模板模型
*/

namespace app\common\model;

use think\model\concern\SoftDelete;

class RechargeTemplate extends Model
{
    use SoftDelete;
    public $softDelete = true;
    protected $name = 'recharge_template';
    protected $autoWriteTimestamp = true;

    //可搜索字段
    protected $searchField = [];

    //是否推荐：1-是；0-否获取器
public function getIsRecommendTextAttr($value, $data)
{
    return self::BOOLEAN_TEXT[$data['is_recommend']];
}

    

    
}
